﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xiezl.Common.Data;
using System.Data.Entity.ModelConfiguration;

namespace Xiezl.Common.Entity
{
    class ProductCategoryMap : EntityTypeConfiguration<ProductCategory>
    {
        public ProductCategoryMap()
        {
            this.ToTable("ProductCategory");

            this.HasKey(t => t.Id);

            this.Property(t => t.Code).HasMaxLength(20);
            this.Property(t => t.Name).HasMaxLength(20);
           
        }
    }
}
